package top.shmly.universal.base.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Constraint(validatedBy = IdCardValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IdCard {

    String message() default "请填写正确的身份证号码";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
